<?php
/**
  * tframe
  *
  *
  * @copyright Copyright (c) 2012 - 2014, huxiaomin
  * @author huxiaomin    2012-6-26  
  * @since		Version 1.0
  *
  */
   
class PurviewPlugin{

    function __construct($point_name='createApp'){
    
    }
    
    /**
     * 
     * @param $request
     */
    function start(&$request){
       $ip = $_SERVER['REMOTE_ADDR'];
       $ip_list = parse_ini_file(TT_DIR.'ip_default_list.ini');
       $check = TIp::checkIp($ip,$ip_list);
       if (!$check) {
       	TLog::logDb('is not legal ip','','','sys');
       	die('is not legal ip');
       } 
    }

}